import { CommandPet } from "./base"
import Insert from "../insert";

@Insert
export class CommandPetReborn extends CommandPet {
    constructor() {
        super()
        this.name = "宠物返生"
        this.tags.push("返生")
        this.detail = "宠物[返生,$宠物$,气血资质>=99|物防资质>=99|法防资质>=99]"
        this.insert = "宠物[返生,${1:宠物},${2:资质}${3:<=}${4:99}${5:}]"
        this.docs = ""
    }
}

@Insert
export class CommandPetMerge extends CommandPet {
    constructor() {
        super()
        this.name = "宠物合成"
        this.tags.push("合成")
        this.detail = "宠物[合成,$宠物$,$道具$]"
        this.insert = "宠物[合成,${1:宠物},${2:道具}]"
        this.docs = ""
    }
}

@Insert
export class CommandPetAddSkill extends CommandPet {
    constructor() {
        super()
        this.name = "宠物打书"
        this.tags.push("技能")
        this.detail = "宠物[打书,$宠物$,$技能$]"
        this.insert = "宠物[打书,${1:宠物},${2:技能}]"
        this.docs = ""
    }
}

@Insert
export class CommandPetRelease extends CommandPet {
    constructor() {
        super()
        this.name = "宠物放生"
        this.tags.push("放生")
        this.detail = "宠物[放生,$宠物$]"
        this.insert = "宠物[放生,${1:宠物}]"
        this.docs = ""
    }
}

@Insert
export class CommandPetJoinBattle extends CommandPet {
    constructor() {
        super()
        this.name = "宠物参战"
        this.tags.push("参战")
        this.detail = "宠物[参战,$宠物$]"
        this.insert = "宠物[参战,${1:宠物}]"
        this.docs = ""
    }
}

@Insert
export class CommandPetLeaveBattle extends CommandPet {
    constructor() {
        super()
        this.name = "宠物休息"
        this.tags.push("休息")
        this.detail = "宠物[休息]"
        this.insert = "宠物[休息]"
        this.docs = ""
    }
}

@Insert
export class CommandPetUseItem extends CommandPet {
    constructor() {
        super()
        this.name = "宠物使用道具"
        this.tags.push("道具", "物品")
        this.detail = "宠物[使用,$道具$]"
        this.insert = "宠物[使用,${1:道具}]"
        this.docs = "参战宠物使用"
    }
}

@Insert
export class CommandPetUseItemByTarget extends CommandPet {
    constructor() {
        super()
        this.name = "指定宠物使用道具"
        this.tags.push("道具", "物品", "使用")
        this.detail = "宠物[使用,$宠物$,$道具$]"
        this.insert = "宠物[使用,${1:宠物},${2:道具}]"
        this.docs = "\n同名宠物是排序第一只使用"
    }
}